<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- 编写函数 is_string(arg) 判断传入的内容是否为字符串 -->
    <script>
      let str = 'liyuanyuan'
      function isString(arg) {
        //判断是否是字符串
        return typeof str == 'string' && str.constructor == String
      }
      console.log(isString(str))
    </script>
  </body>
</html>
